from django.contrib import admin

# Register your models here.
from .models import MusicComment, PostComment
import xadmin

class MusicCommentAdmin(object):
    list_display = ('music', 'user','content', 'collect_time',)
    search_fields = ('music', 'user',)
    readonly_fields = ('content', 'collect_time',)
    show_detail_fields = ('user',)
    model_icon = 'fa fa-comment'


class PostCommentAdmin(object):
    list_display = ('post', 'user', 'content', 'collect_time',)
    search_fields = ('post', 'user',)
    readonly_fields = ('content', 'collect_time',)
    show_detail_fields = ('user',)


xadmin.site.register(MusicComment, MusicCommentAdmin)
xadmin.site.register(PostComment, PostCommentAdmin)